<template>
  <div class="oaDepartSearch clickHide">
    <div class="module-header">
      <h1 class="multiple-EF-result">搜索结果</h1>
    </div>
    <div class="childDepartName">
      <p>
        <span class="oa-name oaDepartSearch-name">
          {{deptThreeContent.oaDepartSearchName}}
        </span>
        <span class="departPhone oaDepartSearch-departPhone">
          {{deptThreeContent.oaDepartSearchDepartPhone}}
        </span>
      </p>
      <p>
        <img src="/static/resources/img/address-yellow.png">
        <span class="oaDepartSearch-address">
          {{deptThreeContent.oaDepartSearchAddress}}
        </span>
      </p>
    </div>
    <div class="data_border_box departAdmin">
      <table class="table directory_table">
        <tbody class="departAdmin_tbody">
          <tr v-if="personAddressListInfo !== ''" v-for="person in personAddressListInfo">
            <td>
              <img :src="'/static/resources/img/user-'+person.picsex+'.jpg'">
            </td>
            <td>
              <p>
                <span>{{person.lastname}}</span>
                <span>{{person.workcode}}</span>
                <span>{{person.mobile}}</span>
              </p>
              <p>
                <span>{{person.jobtitle}}</span>
                <span>{{person.departmentphone}}</span>
              </p>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
    <div class="data_border_box childDepart">
      <table class="table childDepart_table">
        <tbody class="childDepart_tbody">
        <tr v-if="deptAddressListInfo === ''">
          <td>
            <div class="childDepart-td-box">
              <p>
                <span class="oa-name" @click="submitThisDep(deptAddressListInfo._fullname)">
                  {{deptAddressListInfo._fullname}}
                </span>
                <span class="departPhone">
                  {{deptAddressListInfo._phone}}
                  </span>
              </p>
              <p>
                <img src="/static/resources/img/address-yellow.png">
                <span>{{deptAddressListInfo._addrss}}</span>
              </p>
            </div>
          </td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
</template>

<script>
    export default {
        name: "department-com",
        props:['deptThreeContent','personAddressListInfo','deptAddressListInfo'],
        methods:{
          submitThisDep(mes){
            
          }
        }
    }
</script>

<style scoped>

</style>
